<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <?php include_title() ?>
        <link rel="shortcut icon" href="/favicon.ico" />
        <?php include_stylesheets() ?>
        <?php include_javascripts() ?>
    </head>
    <body>
        <div id="header">
           <?php echo $sf_context->get('conf')->getTitulo() ?>
        </div>

        <div id="menu">
            <ul id="navi">
                <li><?php echo link_to('Principal', 'homepage') ?></li>
                <li><?php echo link_to('Sedes', 'principal/sedes') ?></li>
                <li><?php echo link_to('Requisitos', 'principal/requisitosComunes') ?> </li>
                <?php
                $categorias = CategoriaTable::getInstance()->findAll();
                foreach ($categorias as $categoria):  ?>
                    <li><?php echo link_to($categoria->getNombre(), 'principal/requisitos?id=' . $categoria->getId()); ?></li>
                <?php endforeach; ?>
                <li><?php echo link_to('Consulta de Trámites', 'principal/consultaTramite') ?></li>
                <li><?php echo link_to('Login', 'app', array('app' => 'backend')) ?></li>
            </ul>
        </div>

        <div id="content">
            <?php echo $sf_content ?>
           <div class="arriba"><a href="#top" title="Ir arriba">arriba</a></div>
        </div>

        <div id="footer">
          <?php echo $sf_context->get('conf')->getPie() ?>
        </div>

    </body>
</html>
